<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<style type="text/css">
			* {
				margin: 0;
				padding: 0;
			}
			
			div {
				padding: 10px;
				border: 1px solid green;
				overflow: hidden;
				float: left;
				margin-right: 10px;
			}
			
			p,
			h3 {
				width: 50px;
				height: 50px;
				background: red;
				float: left;
				margin-left: 10px;
			}
			
			div p span {
				background-color: yellow;
			}
		</style>
		<script type="text/javascript" src="js/jquery-1.11.1.min.js"></script>
		<script type="text/javascript">
			$(function() {
				//点击爸爸，自己的孩子笑，其余的孩子哭
				$("div").click(function() {
					$(this).children().html("笑").parent().siblings("div").children().html("哭");
											//前面在孩子位置,需要先爬上去,爬到父级
				});
			});
		</script>
	</head>

	<body>
		<div id="box1">
			<p></p>
		</div>
		
		<h3><p></p></h3>
		
		<div id="box2">
			<p></p>
		</div>
		<div id="box3">
			<p></p>
		</div>
	</body>

</html>